var ioc = {
	// 读取配置文件
	config : {
			type : "org.nutz.ioc.impl.PropertiesProxy",
			fields : { paths : [ "db.properties" ] } 
	},
	dataSource : {	
		type : "com.alibaba.druid.pool.DruidDataSource",
		fields : {
			driverClassName : { java : "$config.get('db-driver')" },
			url : { java : "$config.get('db-url')" },
			username : { java : "$config.get('db-username')" },
			password : { java : "$config.get('db-password')" },
			testWhileIdle:true,
			validationQuery:"SELECT 'x'",
			maxActive:{java:"$config.get('db-maxActive')"},
			minIdle:10,
			initialSize:10,
			filters:'stat'
		},
		events : {
			depose : "close"
		}
	},
	dao : {
		type : "org.nutz.dao.impl.NutDao",
		args : [{refer : "dataSource"}]
	},
//	dataSource : {	
//		type : "org.logicalcobwebs.proxool.ProxoolDataSource",
//		fields : {
//			alias :"test",
//			driver : { java : "$config.get('db-driver')" },
//			driverUrl : { java : "$config.get('db-url')" },
//			user : { java : "$config.get('db-username')" },
//			password : { java : "$config.get('db-password')" }
//		}
//	},	
//	dao : {
//		type : "org.nutz.dao.impl.NutDao",
//		args : [{refer : "dataSource"}]
//	},
	
	dataSource1 : {	
		type : "com.alibaba.druid.pool.DruidDataSource",
		fields : {
			driverClassName : { java : "$config.get('db-driver')" },
			url : { java : "$config.get('db-url-pc')" },
			username : { java : "$config.get('db-username')" },
			password : { java : "$config.get('db-password-pc')" },
			testWhileIdle:true,
			validationQuery:"SELECT 'x'",
			maxActive:{java:"$config.get('db-maxActive')"},
			minIdle:10,
			initialSize:10,
			filters:'stat'
		},
		events : {
			depose : "close"
		}
	},
	dao1 : {
		type : "org.nutz.dao.impl.NutDao",
		args : [{refer : "dataSource1"}]
	}
	 
};